package com.gsafety.wellsfort.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ActiveUserVO {
    @ApiModelProperty(value = "日期,x轴")
    private List<String> dateList;
    @ApiModelProperty(value = "活跃人数")
    private List<Integer> activeCountList;
    @ApiModelProperty(value = "新增人数")
    private List<Integer> addCountList;


    public void addCount(Integer count) {
        if (addCountList == null) {
            this.addCountList = new ArrayList<>();
        }
        addCountList.add(count);
    }

    public void addActiveCount(Integer count) {
        if (activeCountList == null) {
            activeCountList = new ArrayList<>();
        }
        this.activeCountList.add(count);
    }

    public void addDate(String date) {
        if (dateList == null) {
            dateList = new ArrayList<>();
        }
        this.dateList.add(date);
    }
}
